import $http from '@/assets/js/http'


//查询帮助问题列表
export function getHelpList(question, index, size) {
    return $http.get('/manage/help/list', {
        params: { question: question, pageIndex: index, pageSize: size }
    });
}

//查看问答详情
export function getHelpDetails(id) {
    return $http.get('/manage/help/getDetail', {
        params: { id:id}
    });
}

//删除问题列表
export function postDeleteHelp(delId) {
    return $http.post('/manage/help/delete', {
        id: delId
    });
}

//新增问题
export function postAddHelp(param) {
    return $http.post('/manage/help/add', {
        question:param.question,
        content:param.content
    });
}

//编辑问题
export function postEditHelp(param) {
    return $http.post('/manage/help/edit', {
        id:param.id,
        question:param.question,
        content:param.content
    });
}